API Documentation
ShaderManager.h
1 // ShaderManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT ShaderManager final : public nkCommon::SingletonClass<ShaderManager>
14  {
15  public :
16 
21 
22  // Shaders
36  Shader* get (const nkMemory::StringView& name) ;
45  Shader* getByIndex (unsigned int index) ;
52  void rename (const nkMemory::StringView& oldName, const nkMemory::StringView& newName) ;
58  void erase (const nkMemory::StringView& name) ;
59  } ;
60 }
nkGraphics::ShaderManager::rename
void rename(const nkMemory::StringView &oldName, const nkMemory::StringView &newName)
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:14
nkGraphics::ShaderManager
Manages the sahders available in the component.
Definition: ShaderManager.h:14
nkGraphics::ShaderManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::ShaderManager::createOrRetrieve
Shader * createOrRetrieve(const nkMemory::StringView &name)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ShaderManager::getByIndex
Shader * getByIndex(unsigned int index)
nkGraphics::ShaderManager::~ShaderManager
~ShaderManager()
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ShaderManager::get
Shader * get(const nkMemory::StringView &name)